import type { App } from 'vue';
import { ElCard, ElForm, ElFormItem, ElInput, ElButton, ElDescriptions, ElDescriptionsItem} from 'element-plus';

const element_plugins = [ElCard, ElForm, ElFormItem, ElInput, ElButton, ElDescriptions, ElDescriptionsItem]

export function setupElement(app: App<Element>) {
  for(var idx = 0; idx < element_plugins.length; idx++) { 
      app.component(element_plugins[idx].name, element_plugins[idx])
  }
}